package com.sxhuayuan.parking.service.impl.pojo;

import com.sxhuayuan.parking.utils.SpringUtils;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Deprecated
@Setter
@Getter
@NoArgsConstructor
public class ParkOutNoticeResult {

	private Long uniqueId;
	private Boolean isPassable = false;
	private String msg;

	public static ParkOutNoticeResult success() {
		return new ParkOutNoticeResult(true, "");
	}

	public static ParkOutNoticeResult success(String msg) {
		return new ParkOutNoticeResult(true, msg);
	}

	public static ParkOutNoticeResult error(String msg) {
		return new ParkOutNoticeResult(false, msg);
	}

	public ParkOutNoticeResult(Boolean isPassable, String msg) {
		super();
		this.isPassable = isPassable;
		this.msg = SpringUtils.getMessage(msg);
	}
}
